<template>
	<view class="page-success">
		<view class="header">
			<image class="ico-success" src="../../static/icon_success.png" mode=""></image>
			<view class="success-title">恭喜您预约成功</view>
			<view class="success-desc">请保持电话畅通，稍后工作人员将与您联系</view>
			
			<view class="success-btns">
				<!-- <view class="btn" v-if="id" @click="$link('/pagesMine/meetDetail?id='+id)">查看详情</view>
				<view class="" v-if="id" style="width: 30px;"></view> -->
				<view class="btn" @click="backIndex">返回首页</view>
			</view>
		</view>
		<view class="bottom" @click="$makePhoneCall()">客服热线: {{common.servicePhone}}</view>
	</view>
</template>

<script>
	import common from '../../utils/common.js'
	export default {
		data() {
			return{
				common,
				id: ''
			}
		},
		
		onLoad(options) {
			this.id = options.id
		},
		
		methods: {
			backIndex() {
				// #ifdef MP-WEIXIN
				// console.log('用户点击了');
				// uni.requestSubscribeMessage({
				// 	tmplIds: ['5DwkPPSLS8DponizktT66I75sJWekXm21kUghJvnvbQ', 'mC-sKHQZQ52l_0qOagWsjAiMHf_WHXfFG_Gf0qReFbc'],
				// 	complete: res => {
				// 		this.$link('/pages/index/index')
				// 	}
				// })
				this.$link('/pages/index/index')
				// #endif
				
				// #ifndef MP-WEIXIN
				this.$link('/pages/index/index')
				// #endif
			}
		}
	}
</script>

